<p>home works!</p>

<button (click)="addNode()">i want node</button>
<p *ngFor="let item of list">{{item}}</p>

<!-- <app-title [title]="title"></app-title>
<button (click)="changeTitle()">hahaha</button>


<div>
    <h2>数组输入框</h2>
    <input type="text" (input)="addListFun($event)" placeholder="输入元素">
  </div>   -->

<p *ngFor=" let item of list ">{{item}}</p>
<app-title #titleDOm (addList) = "addListFun($event)" [title]="title"></app-title>
<button (click)="addFun()">调用子组件方法</button>

<a [routerLink]="['/home/list']" routerLinkActive="router-link-active">list</a>
<router-outlet></router-outlet>